package com.lizhen.j2eepattern.businessdelegatepattern;

public class BusinessDelegatePattern {
    public BusinessDelegatePattern() {
    }

    public static void main(String[] args) {
        BusinessDelegate businessDelegate = new BusinessDelegate();
        businessDelegate.setServiceType("EJB");
        Client client = new Client(businessDelegate);
        client.doTask();
        businessDelegate.setServiceType("JMS");
        client.doTask();
    }
}
